![]() |
WOLF core
WOLF: A Modular Estimation Framework for Robotics
|
Log of a consistency check: whether it is consistent and the explanation of the inconsistencies. More...
#include <core/utils/check_log.h>
Public Member Functions | |
| CheckLog () | |
| Default constructor: consistent, without explanation. More... | |
| CheckLog (bool _consistent, std::string _explanation) | |
| Constructor from the consistency and the explanation (kept only if inconsistent) More... | |
| ~CheckLog () | |
| Destructor. More... | |
| void | compose (CheckLog l) |
| Composes another log: consistent if both are, with both explanations. More... | |
| void | assertTrue (bool _condition, std::stringstream &_stream) |
| Composes a condition, with the stream contents as explanation if false, and clears the stream. More... | |
Public Attributes | |
| bool | is_consistent_ |
| Whether the check passed. More... | |
| std::string | explanation_ |
| Explanation of the inconsistencies. More... | |
Log of a consistency check: whether it is consistent and the explanation of the inconsistencies.
| CheckLog::CheckLog | ( | ) |
Default constructor: consistent, without explanation.
| CheckLog::CheckLog | ( | bool | _consistent, |
| std::string | _explanation | ||
| ) |
Constructor from the consistency and the explanation (kept only if inconsistent)
|
inline |
Destructor.
| void CheckLog::assertTrue | ( | bool | _condition, |
| std::stringstream & | _stream | ||
| ) |
Composes a condition, with the stream contents as explanation if false, and clears the stream.
| void CheckLog::compose | ( | CheckLog | l | ) |
Composes another log: consistent if both are, with both explanations.
| std::string wolf::CheckLog::explanation_ |
Explanation of the inconsistencies.
| bool wolf::CheckLog::is_consistent_ |
Whether the check passed.